package com.hernie.piggymall.order.feign;

import com.hernie.piggymall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Author HuangJp
 * @Date 2022/5/9
 * @Description
 */
@FeignClient("piggymall-member")
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/{memberId}/addresses")
    List<MemberAddressVo> getAdress(@PathVariable("memberId") Long memberId);
}
